package com.ponhu.ea2.goodsCenter.provider;

import com.ponhu.ea2.properties.GoodsProperties;
import com.ponhu.ea2.properties.UIProperties;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import springfox.documentation.oas.annotations.EnableOpenApi;

/**
 * @Description:
 * @Author: LiuKai
 * @Created: 2021/6/1
 */
@Slf4j
@EnableOpenApi
@EnableDiscoveryClient
@SpringBootApplication
@MapperScan({"com.ponhu.ea2.goodsCenter.provider.mapper"})
@EnableAspectJAutoProxy(exposeProxy = true, proxyTargetClass = true)
@EnableConfigurationProperties({GoodsProperties.class, UIProperties.class})
public class GoodsCenterApplication {

    public static void main(String[] args) {
        SpringApplication.run(GoodsCenterApplication.class, args);
        log.info("商品中心Provider服务启动成功！");
    }

}